package com.hellobike.haxing.modules.supplier.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hellobike.haxing.modules.supplier.entity.TSupplierClProRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description: 供应商商品表记录表
 * @Author: haxing-boot
 * @Date:   2020-01-15
 * @Version: V1.0
 */
public interface TSupplierClProRecordMapper extends BaseMapper<TSupplierClProRecord> {


    @Select("SELECT supplier_id,supplier_name FROM t_supplier_cl_pro_record " +
            "where sku_id = #{skuId} " +
            "GROUP BY supplier_id,supplier_name ")
    List<TSupplierClProRecord> getDupClPro(@Param("skuId") Long skuId);
}
